package model;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;
import com.et.ar.exception.ActiveRecordException;
import com.wzzz.cache.CacheHandler;
import com.wzzz.cache.CompanyCacheHandler;
import com.wzzz.cache.GoodsKindCacheHandler;

@Table(name = "t_case_goods_info")
public class CaseGoods extends ActiveRecordBase {
	@Id
	public String goods_id;
	@Column
	public String goods_num;
	@Column
	public String case_num;
	@Column
	public String goods_type;
	@Column
	public String goods_tcode;
	@Column
	public String goods_amount;
	@Column
	public String goods_unit;
	@Column
	public String case_name;
	@Column
	public String goods_name;
	@Column
	public String goods_company;
	@Column
	public String keep_man;
	@Column
	public String keep_status;
	@Column
	public String keep_company;
	@Column
	public String keep_location;
	@Column
	public String case_man;
	@Column
	public String case_to_man;
	@Column
	public String keep_by;
	@Column
	public String enter_date;
	@Column
	public String enter_coment;
	@Column
	public String save_company;
	@Column
	public String save_man;
	@Column
	public String save_date;
	@Column
	public String save_reason;
	@Column
	public String goods_group;
	@Column
	public String status;
	@Column
	public String from_location;
	@Column
	public String case_man_tel;
	@Column
	public String case_man_phone;
	@Column
	public String operate_flag;
	@Column
	public String goods_desc;
	@Column
	public String goods_values;

	@Column
	public String case_type;
	@Column
	public String case_to_company;
	@Column
	public String case_status;
	@Column
	public String case_company;
	@Column
	public String goods_kind;
	@Column
	public String case_simple_desc;
	
	
	
	public String getCase_simple_desc() {
		return case_simple_desc;
	}
	public void setCase_simple_desc(String case_simple_desc) {
		this.case_simple_desc = case_simple_desc;
	}
	public String getCase_type() {
		return case_type;
	}
	public String getCase_typeDesc() {
		if(case_type!=null){
			return CacheHandler.getDicDesc("15", case_type);
		}
		return case_type;
	}

	public void setCase_type(String case_type) {
		this.case_type = case_type;
	}

	public String getCase_to_company() {
		return case_to_company;
	}
	public String getCase_to_companyDesc() {
		if(case_to_company != null){
			case_to_company = CompanyCacheHandler.getCompanyNameByCode(case_to_company);
		}
		return case_to_company;
	}

	public void setCase_to_company(String case_to_company) {
		this.case_to_company = case_to_company;
	}

	public String getCase_status() {
		return case_status;
	}
	public String getCase_statusDesc() {
		if(case_status!=null){
			return CacheHandler.getDicDesc("14", case_status);
		}
		return case_status;
	}
	
	public void setCase_status(String case_status) {
		this.case_status = case_status;
	}

	public String getCase_company() {
		return case_company;
	}
	public String getCase_companyDesc() {
		if(case_company != null){
			case_company = CompanyCacheHandler.getCompanyNameByCode(case_company);
		}
		return case_company;
	}

	public void setCase_company(String case_company) {
		this.case_company = case_company;
	}

	public String getGoods_id() {
		return goods_id;
	}

	public void setGoods_id(String goods_id) {
		this.goods_id = goods_id;
	}

	public String getGoods_num() {
		return goods_num;
	}

	public void setGoods_num(String goods_num) {
		this.goods_num = goods_num;
	}

	public String getCase_num() {
		return case_num;
	}

	public void setCase_num(String case_num) {
		this.case_num = case_num;
	}

	public String getGoods_type() {
		return goods_type;
	}

	public String getGoods_typeDesc() {
		if (goods_type != null) {
			return CacheHandler.getDicDesc("1", goods_type);
		}
		return goods_type;
	}

	public void setGoods_type(String goods_type) {
		this.goods_type = goods_type;
	}

	public String getGoods_tcode() {
		return goods_tcode;
	}

	public void setGoods_tcode(String goods_tcode) {
		this.goods_tcode = goods_tcode;
	}

	public String getGoods_amount() {
		return goods_amount;
	}

	public void setGoods_amount(String goods_amount) {
		this.goods_amount = goods_amount;
	}

	public String getGoods_unit() {
		return goods_unit;
	}

	public void setGoods_unit(String goods_unit) {
		this.goods_unit = goods_unit;
	}

	public String getCase_name() {
		return case_name;
	}

	public void setCase_name(String case_name) {
		this.case_name = case_name;
	}

	public String getGoods_name() {
		return goods_name;
	}

	public void setGoods_name(String goods_name) {
		this.goods_name = goods_name;
	}

	public String getGoods_company() {
		return goods_company;
	}
	public String getGoods_companyDesc() {
		if (goods_company != null) {
			return CompanyCacheHandler.getCompanyNameByCode(goods_company);
		}
		return goods_company;
	}
	
	public void setGoods_company(String goods_company) {
		this.goods_company = goods_company;
	}

	public String getKeep_man() {
		return keep_man;
	}

	public void setKeep_man(String keep_man) {
		this.keep_man = keep_man;
	}

	public String getKeep_status() {
		return keep_status;
	}

	public void setKeep_status(String keep_status) {
		this.keep_status = keep_status;
	}

	public String getKeep_company() {
		return keep_company;
	}
	public String getKeep_companyDesc() {
		if (keep_company != null) {
			return CompanyCacheHandler.getCompanyNameByCode(keep_company);
		}
		return keep_company;
	}

	public void setKeep_company(String keep_company) {
		this.keep_company = keep_company;
	}

	public String getKeep_location() {
		return keep_location;
	}

	public void setKeep_location(String keep_location) {
		this.keep_location = keep_location;
	}

	public String getCase_man() {
		return case_man;
	}

	public void setCase_man(String case_man) {
		this.case_man = case_man;
	}

	public String getCase_to_man() {
		return case_to_man;
	}

	public void setCase_to_man(String case_to_man) {
		this.case_to_man = case_to_man;
	}

	public String getKeep_by() {
		return keep_by;
	}

	public void setKeep_by(String keep_by) {
		this.keep_by = keep_by;
	}

	public String getEnter_date() {
		return enter_date;
	}

	public void setEnter_date(String enter_date) {
		this.enter_date = enter_date;
	}

	public String getEnter_coment() {
		return enter_coment;
	}

	public void setEnter_coment(String enter_coment) {
		this.enter_coment = enter_coment;
	}

	public String getSave_company() {
		return save_company;
	}
	public String getSave_companyDesc() {
		if (save_company != null) {
			return CompanyCacheHandler.getCompanyNameByCode(save_company);
		}
		return save_company;
	}

	public void setSave_company(String save_company) {
		this.save_company = save_company;
	}

	public String getSave_man() {
		return save_man;
	}

	public void setSave_man(String save_man) {
		this.save_man = save_man;
	}

	public String getSave_date() {
		return save_date;
	}

	public void setSave_date(String save_date) {
		this.save_date = save_date;
	}

	public String getSave_reason() {
		return save_reason;
	}

	public void setSave_reason(String save_reason) {
		this.save_reason = save_reason;
	}

	public String getGoods_group() {
		return goods_group;
	}

	public void setGoods_group(String goods_group) {
		this.goods_group = goods_group;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getFrom_location() {
		return from_location;
	}

	public void setFrom_location(String from_location) {
		this.from_location = from_location;
	}

	public String getCase_man_tel() {
		return case_man_tel;
	}

	public void setCase_man_tel(String case_man_tel) {
		this.case_man_tel = case_man_tel;
	}

	public String getCase_man_phone() {
		return case_man_phone;
	}

	public void setCase_man_phone(String case_man_phone) {
		this.case_man_phone = case_man_phone;
	}

	public String getOperate_flag() {
		return operate_flag;
	}

	public void setOperate_flag(String operate_flag) {
		this.operate_flag = operate_flag;
	}

	public String getGoods_desc() {
		return goods_desc;
	}

	public void setGoods_desc(String goods_desc) {
		this.goods_desc = goods_desc;
	}

	public String getGoods_values() {
		return goods_values;
	}

	public void setGoods_values(String goods_values) {
		this.goods_values = goods_values;
	}
	public String getGoods_kind() {
		return goods_kind;
	}
	public String getGoods_kindDesc() {
		if(goods_kind!=null){
			return GoodsKindCacheHandler.getKindNameByCode(goods_kind);
		}
		return goods_kind;
	}
	public void setGoods_kind(String goods_kind) {
		this.goods_kind = goods_kind;
	}

}
